home *** CD-ROM | disk | FTP | other *** search
- -- card: 3517 from stack: in
- -- bmap block id: 6154
- -- flags: 4000
- -- background id: 2757
- -- name: J/E
- ----- HyperTalk script -----
- on openCard
- global FICA1
- global FICA2
- global FUTA1
- global FUTA2
- global SUTA1
- global SUTA2
- global FICAtotal
- global FUTAtotal
- global SUTAtotal
- global FUTA
- global SUTA
- put 0 into FICAlimit
- put line 1 of card field "FICArate" into FICA1
- put line 2 of card field "FICArate" into FICA2
- put line 1 of card field "FUTArate" into FUTA1
- put line 2 of card field "FUTArate" into FUTA2
- put line 1 of card field "SUTArate" into SUTA1
- put line 2 of card field "SUTArate" into SUTA2
- put FICA1 * FICA2 into FICAlimit
- multiply FICAlimit by 100
- put round(FICAlimit) into FICAtotal
- divide FICAtotal by 100
-
-
- end openCard
-
-
- -- part 1 (field)
- -- low flags: 00
- -- high flags: 4000
- -- rect: left=192 top=79 right=286 bottom=282
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 65535
- -- font id: 3
- -- text size: 12
- -- style flags: 256
- -- line height: 16
- -- part name: Credits
-
-
- -- part 2 (field)
- -- low flags: 00
- -- high flags: 4000
- -- rect: left=102 top=79 right=286 bottom=191
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 65535
- -- font id: 3
- -- text size: 12
- -- style flags: 256
- -- line height: 16
- -- part name: Debits
-
-
- -- part 3 (field)
- -- low flags: 00
- -- high flags: 4000
- -- rect: left=45 top=79 right=285 bottom=99
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 65535
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: CA Code
-
-
- -- part 4 (field)
- -- low flags: 00
- -- high flags: 4000
- -- rect: left=97 top=308 right=338 bottom=169
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 65535
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: FICArate
-
-
- -- part 5 (field)
- -- low flags: 00
- -- high flags: 4000
- -- rect: left=171 top=308 right=338 bottom=243
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 65535
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: FUTArate
-
-
- -- part 6 (field)
- -- low flags: 00
- -- high flags: 4000
- -- rect: left=245 top=308 right=338 bottom=317
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 65535
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: SUTArate
-
-
- -- part 7 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=353 top=224 right=248 bottom=382
- -- title width / last selected line: 0
- -- icon id / first selected line: 1015 / 1015
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: ComputeJE
- ----- HyperTalk script -----
- on mouseUp
-
- -- SET FORMAT
- set lockScreen to true
- set textAlign of card field "Debits" to right
- set textAlign of card field "Credits" to right
- set textAlign of card field "qsum" to right
- set textAlign of card field "ysum" to right
- set textAlign of card field "Emp's" to right
- set textAlign of card field "CA Code" to right
- set textAlign of card field "FICArate" to right
- set textAlign of card field "FUTArate" to right
- set textAlign of card field "SUTArate" to right
-
- -- CHECK FOR DUPLICATE ENTRY ON THE SAME DAY
- put line 1 of card field "DATE" into datetest
- get the date
- if it = datetest then
- beep
- beep
- answer "DO YOU WANT TO DUPLICATE AN UPDATE !?!" with "Yes" or "No"
- if it is "No" then
- exit mouseUp
- end if
- end if
-
- -- SET GLOBALS
- global FICA1
- global FICA2
- global FUTA1
- global FUTA2
- global FUTA
- global SUTA1
- global SUTA2
- global SUTA
- global FICAtotal
- global Employees
-
- -- CLEAR LAST TOTALS BEFORE CALCULATING NEW J/E
- get the date
- set the textStyle of card field "DATE" to bold
- set the textSize of card field "DATE" to 9
- put it into line 1 of card field "DATE"
- repeat with k = 1 to 13
- put empty into line k of card field "Debits"
- put empty into line k of card field "Credits"
- end repeat
- put 0 into sum1
- put 0 into sum2
- put 0 into sum3
- put 0 into sum4
- put 0 into sum5
- put 0 into sum6
- put 0 into sum7
- put 0 into sum8
- put 0 into sum9
- put 0 into sum10
- put 0 into sum11
- put 0 into FICA
- put 0 into FUTA
- put 0 into SUTA
- set lockScreen to false
-
- -- SPEED OR NOT?
- beep
- answer "Like to see Pay Cards being updated ?" with "Yes" or "No Thanks"
- if it is "No Thanks" then
- set lockScreen to true
- else
- set lockScreen to false
- end if
- set cursor to 4
-
- -- GO TO THE PAY CARDS FOR TOTALS AND UPDATES
- get number of cards
- put It into finis
- put finis - 2 into Employees
- repeat with x = 1 to finis-2
- go to next card
- visual wipe right to white
-
- -- UPDATE THE HOURS FIELD
- set numberFormat to 0.
- add line 1 of field "Hours" to line 3 of field "Hours"
- add line 1 of field "Hours" to line 5 of field "Hours"
- add line 2 of field "Hours" to line 4 of field "Hours"
- add line 2 of field "Hours" to line 6 of field "Hours"
-
- --- GET TOTALS FROM THE CURRENT PAY COLUMN AND UPDATE TOTALS
- set numberFormat to 0.00
- put 0 into pay
- add line 1 of field "CurrPay" to sum1
- add line 2 of field "CurrPay" to sum2
- add line 3 of field "CurrPay" to sum3
- repeat with x = 1 to 3
- add line x of field "CurrPay" to line x of field "QtrTotal"
- add line x of field "CurrPay" to line x of field "YTDtotal"
- end repeat
-
- -- CHECK FICA WITHHOLDING LIMITS
- put 0 into currPaid
- put 0 into ytdPaid
- put 0 into thisPay
- put line 4 of field "CurrPay" into currPaid
- put line 4 of field "YTDtotal" into ytdPaid
- put ytdPaid + currPaid into thisPaid
- if thisPaid >= FICAtotal and ytdPaid >= FICAtotal and currPaid <> empty then
- subtract currPaid from line 10 of field "CurrPay"
- add currPaid to line 11 of field "CurrPay"
- put 0 into line 4 of field "CurrPay"
- else
- if thisPaid >= FICAtotal and ytdPaid < FICAtotal then
- put 0 into thisPaid
- put FICAtotal - ytdPaid into thisPaid
- put thisPaid into line 4 of field "CurrPay"
- subtract currPaid - thisPaid from line 10 of field "CurrPay"
- add currPaid - thisPaid to line 11 of field "CurrPay"
- end if
- end if
-
-
- -- CHECK FUTA EARNING LIMIT
- put 0 into pay
- put 0 into ytdPay
- put 0 into thisPay
- repeat with x = 1 to 3
- add line x of field "CurrPay" to pay
- add line x of field "YTDtotal" to ytdPay
- end repeat
- put ytdPay - pay into thisPay
- if ytdPay >= FUTA2 and thisPay >= FUTA2 then
- add 0 to FUTA
- else
- if ytdPay >= FUTA2 and thisPay < FUTA2 then
- add FUTA2 - thisPay to FUTA
- else
- add pay to FUTA
- end if
- end if
-
- -- CHECK SUTA EARNING LIMIT
- if ytdPay >= SUTA2 and thisPay >= SUTA2 then
- add 0 to SUTA
- else
- if ytdPay >= SUTA2 and thisPay < SUTA2 then
- add SUTA2 - thisPay to SUTA
- else
- add pay to SUTA
- end if
- end if
-
- -- CONTINUE TO ADD THE REST
- add line 4 of field "CurrPay" to sum4
- add line 5 of field "CurrPay" to sum5
- add line 6 of field "CurrPay" to sum6
- add line 7 of field "CurrPay" to sum7
- add line 8 of field "CurrPay" to sum8
- add line 9 of field "CurrPay" to sum9
- add line 10 of field "CurrPay" to sum10
- add line 11 of field "CurrPay" to sum11
- repeat with x = 4 to 11
- add line x of field "CurrPay" to line x of field "QtrTotal"
- add line x of field "CurrPay" to line x of field "YTDtotal"
- end repeat
- end repeat
-
-
-
- -- GO BACK AND UPDATE THE JOURNAL ENTRY AND SUMMARY OF PAY CARDS.
- go to card ID 3517
- set lockScreen to true
- set textStyle of card field 1 to bold
- set textStyle of card field 2 to bold
- set numberFormat to 0.
- put Employees into line 1 of card field "Emp's"
- set numberFormat to 0.00
- put 0 into cr
- put 0 into db
- put 0 into sumx
- put 0 into pay
- put "$" & sum11 into line 1 of card field "Credits"
- add sum11 to cr
- put line 1 of card field "qsum" into sumx
- add sum1 to sumx
- put sumx into line 1 of card field "qsum"
- put 0 into sumx
- put line 1 of card field "ysum" into sumx
- add sum1 to sumx
- put sumx into line 1 of card field "ysum"
- put 0 into sumx
- put line 2 of card field "qsum" into sumx
- add sum2 to sumx
- put sumx into line 2 of card field "qsum"
- put 0 into sumx
- put line 2 of card field "ysum" into sumx
- add sum2 to sumx
- put sumx into line 2 of card field "ysum"
- put 0 into sumx
- put sum1 into sumx
- add sum2 to sumx
- add sum3 to sumx
- put sumx into pay
- put "$" & sumx into line 2 of card field "Debits"
- add sumx to db
- put 0 into sumx
- put "$" & sum4 into line 3 of card field "Debits"
- add sum4 to db
- put line 3 of card field "qsum" into sumx
- add sum3 to sumx
- put sumx into line 3 of card field "qsum"
- put 0 into sumx
- put line 3 of card field "ysum" into sumx
- add sum3 to sumx
- put sumx into line 3 of card field "ysum"
- put 0 into sumx
- put sum4 into sumf
- multiply sum4 by 2
- put "$" & sum4 into line 4 of card field "Credits"
- add sum4 to cr
- put line 4 of card field "qsum" into sumx
- add sumf to sumx
- put sumx into line 4 of card field "qsum"
- put 0 into sumx
- put line 4 of card field "ysum" into sumx
- add sumf to sumx
- put sumx into line 4 of card field "ysum"
- put 0 into sumx
- put "$" & sum5 into line 5 of card field "Credits"
- add sum5 to cr
- put line 5 of card field "qsum" into sumx
- add sum5 to sumx
- put sumx into line 5 of card field "qsum"
- put 0 into sumx
- put line 5 of card field "ysum" into sumx
- add sum5 to sumx
- put sumx into line 5 of card field "ysum"
- put 0 into sumx
- put "$" & sum6 into line 6 of card field "Credits"
- add sum6 to cr
- put line 6 of card field "qsum" into sumx
- add sum6 to sumx
- put sumx into line 6 of card field "qsum"
- put 0 into sumx
- put line 6 of card field "ysum" into sumx
- add sum6 to sumx
- put sumx into line 6 of card field "ysum"
- put 0 into sumx
- put "$" & sum7 into line 7 of card field "Credits"
- add sum7 to cr
- put line 7 of card field "qsum" into sumx
- add sum7 to sumx
- put sumx into line 7 of card field "qsum"
- put 0 into sumx
- put line 7 of card field "ysum" into sumx
- add sum7 to sumx
- put sumx into line 7 of card field "ysum"
- put 0 into sumx
- put "$" & sum8 into line 8 of card field "Credits"
- add sum8 to cr
- put line 8 of card field "qsum" into sumx
- add sum8 to sumx
- put sumx into line 8 of card field "qsum"
- put 0 into sumx
- put line 8 of card field "ysum" into sumx
- add sum8 to sumx
- put sumx into line 8 of card field "ysum"
- put 0 into sumx
- put "$" & FUTA * FUTA1 into line 9 of card field "Debits"
- add FUTA to db
- put "$" & SUTA * SUTA1 into line 10 of card field "Debits"
- add SUTA to db
- put "$" & FUTA * FUTA1 into line 11 of card field "Credits"
- add FUTA to cr
- put "$" & SUTA * SUTA1 into line 12 of card field "Credits"
- add SUTA to cr
- put "$" & db into line 13 of card field "Debits"
- put "$" & cr into line 13 of card field "Credits"
- beep
- beep
-
- end mouseUp
-
-
-
- -- part 9 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=357 top=295 right=313 bottom=379
- -- title width / last selected line: 0
- -- icon id / first selected line: 1015 / 1015
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: ClearQtr
- ----- HyperTalk script -----
- on mouseUp
-
- -- PRINT WARNING
- beep
- answer "You have all QUARTERLY printouts you need ?" with "Yes" or "No"
- if it is "No" then
- exit mouseUp
- end if
- set cursor to 4
- set lockScreen to true
-
- -- CLEAR SUMMARY OF PAY CARDS
- repeat with x = 1 to 13
- put empty into line x of card field "qsum"
- end repeat
-
-
- -- CLEAR QUARTERLY TOTALS
- get number of cards
- put it into Finis
- repeat with x = 1 to Finis-2
- go to next card
- -- CLEAR HOURS
- put 0 into line 3 of field "Hours"
- put 0 into line 4 of field "Hours"
-
- -- CLEAR TOTALS
- set textAlign of field "QtrTotal" to right
- repeat with x = 1 to 11
- put empty into line x of field "QtrTotal"
- end repeat
- end repeat
- go to card ID 3517
- beep
- beep
- set cursor to 0
- end mouseUp
-
-
-
- -- part 10 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=434 top=295 right=314 bottom=455
- -- title width / last selected line: 0
- -- icon id / first selected line: 1015 / 1015
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: ClearYTD
- ----- HyperTalk script -----
- on mouseUp
-
- -- WARNING TO RECOMPUTE ALL PAY
- beep
- answer "You have all ANNUAL printouts you need ?" with "Yes" or "No"
- if it is "No" then
- exit mouseUp
- end if
-
- set cursor to 4
- set lockScreen to true
-
- -- CLEAR SUMMARY OF PAY CARDS
- repeat with x = 1 to 13
- put empty into line x of card field "ysum"
- end repeat
-
- -- CLEAR YEAR-TO-DATE TOTALS
- get number of cards
- put it into Finis
- repeat with x = 1 to Finis-2
- go to next card
- -- CLEAR HOURS
- put 0 into line 5 of field "Hours"
- put 0 into line 6 of field "Hours"
-
- -- CLEAR TOTALS
- set textAlign of field "YTDtotal" to right
- repeat with x = 1 to 11
- put empty into line x of field "YTDtotal"
- end repeat
-
- end repeat
- go to card ID 3517
- beep
- beep
- answer "Please COMPUTE PAY on each card at his time." with "OK"
- set cursor to 0
- end mouseUp
-
-
-
- -- part 11 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=62 top=55 right=67 bottom=146
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 256
- -- line height: 12
- -- part name: DATE
-
-
- -- part 13 (field)
- -- low flags: 00
- -- high flags: 4000
- -- rect: left=416 top=79 right=205 bottom=505
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 65535
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: ysum
-
-
- -- part 14 (field)
- -- low flags: 00
- -- high flags: 4000
- -- rect: left=328 top=79 right=205 bottom=415
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 65535
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: qsum
-
-
- -- part 16 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=427 top=225 right=246 bottom=453
- -- title width / last selected line: 0
- -- icon id / first selected line: 15972 / 15972
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: New Button
- ----- HyperTalk script -----
- on mouseUp
- doMenu "New Card"
- end mouseUp
-
-
-
- -- part 17 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=352 top=55 right=71 bottom=412
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 65535
- -- font id: 3
- -- text size: 9
- -- style flags: 256
- -- line height: 12
- -- part name: Emp's
- ----- HyperTalk script -----
- on openCard
- set textAlign to right
- set numberFormat to 0.
- end openCard
-
-
- -- part 18 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=6 top=26 right=46 bottom=55
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Help
- ----- HyperTalk script -----
- on mouseUp
- go to prev card
- end mouseUp
-
-
-
- -- part contents for background part 1
- ----- text -----
- John
-
-
-
-
- -- part contents for card part 2
- ----- text -----
-
- $7106.00
- $128.12
-
-
-
-
-
- $5.65
- $0.71
-
-
- $8646.12
-
- -- part contents for card part 6
- ----- text -----
- 0.001
- 7000.00
-
- -- part contents for card part 4
- ----- text -----
- 0.0751
- 45000.00
-
- -- part contents for card part 3
- ----- text -----
- 1060
- 6420
- 6430
- 2010
- 2020
- 2030
- 2040
- 2050
- 6440
- 6450
- 2060
- 2070
-
- -- part contents for card part 5
- ----- text -----
- 0.008
- 7000.00
-
- -- part contents for background part 12
- ----- text -----
-
-
-
- $00.00
- $00.00
- $00.00
-
- -- part contents for card part 1
- ----- text -----
- $4455.46
-
-
- $256.24
- $1625.00
- $616.92
- $254.50
- $26.00
-
-
- $5.65
- $0.71
- $8646.12
-
- -- part contents for background part 11
- ----- text -----
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
-
- -- part contents for background part 13
- ----- text -----
-
-
-
-
-
-
- -- part contents for card part 11
- ----- text -----
- 4/5/88
-
- -- part contents for card part 14
- ----- text -----
- 14040.00
- 72.00
- 100.00
- 391.42
- 3250.00
- 1233.84
- 509.00
- 52.00
-
-
-
-
-
-
- -- part contents for card part 13
- ----- text -----
- 70200.00
- 360.00
- 500.00
- 4660.70
- 16250.00
- 6169.20
- 2545.00
- 260.00
-
-
-
-
-
-
- -- part contents for card part 17
- ----- text -----
- 4